<?php
/**
 * Description of ProfileController
 *
 * @author Admin
 */
class ProfileController extends Controller
{
	
	public function actionIndex()
	{
		$usersTable = new Users();
		
		$trans = $usersTable->dbConnection->beginTransaction();
		
		$row = $usersTable->findByPk(1);
		$rows = $row->words;
		
		$trans->commit();
		
		print_r($rows[0]->translate); 
		

		$this->render('index');
	}
	
}